
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';


// import { createPinia } from 'pinia'
// import piniaPluginPersist from 'pinia-plugin-persist'

// import '@/styles/index.less';
// import '@/assets/fonts/iconfont.css';
// import '@/assets/fonts/iconfont.js';

// import '@/assets/maplib/mapbox-gl.css';
// import '@/assets/maplib/mapbox-gl.js';
// import '@/assets/maplib/turf.min.js';

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// import 'element-plus/theme-chalk/dark/css-vars.css' // 测试暗黑色主题
// import '../src/assets/fonts/iconfont.css'
// import './theme.css'
import './common.css'
// import locale from 'element-plus/lib/locale/lang/zh-cn';
import locale from 'element-plus/es/locale/lang/zh-cn'
// import 'ant-design-vue/dist/antd.css';
// import Antd from 'ant-design-vue';


// import 'echarts/lib/component/legend'

import FirstLevelTitle from "@/components/first-level-title/index.vue";
import SecondaryTitle from "@/components/secondary-title/index.vue";
//dxq
import PsjTitle from "@/components/psj-title.vue";




// createApp(App)
//   .use(router).use(Antd)
//   .use(createPinia().use(piniaPluginPersist))
//   .use(ElementPlus, { locale }).mount('#app');

const app = createApp(App)

// 注册全局组件
app.component('FirstLevelTitle', FirstLevelTitle)
app.component('SecondaryTitle', SecondaryTitle)
app.component('PsjTitle', PsjTitle)


// 使用 router 和 ElementPlus
app.use(router).use(ElementPlus, { locale }).mount('#app')